#ifndef __USART_H
#define __USART_H
#include <iostream>
#define HEAD1 0XA5
#define HEAD2 0X5A
#define TAIL 0XFF
typedef struct __packed
{
    unsigned char head[2];
    uint8_t len;
    uint8_t cmd;
    union
    {
        uint8_t data8[4];
        float dataf;
    };
    unsigned char tail;
} DATA;
extern DATA datatest;
extern uint8_t isAction;
extern uint8_t isBlack;
extern uint8_t isWhite;
extern uint8_t isPlayerDown;
extern uint8_t capCam;
void Receive(uint8_t bytedata);
void Data_Analysis(uint8_t cmd, uint8_t *data_ptr, uint8_t len);
#endif